<template>
  <div class="about">
    <el-menu
      :default-active="activeIndex"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
    >
      <el-menu-item index="index">首页 </el-menu-item>
      <el-menu-item index="home_type">房间类型</el-menu-item>
      <el-menu-item index="home">房间</el-menu-item>
    </el-menu>

    <router-view />
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1",
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
      this.$router.push(key);
    },
  },
};
</script>